home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 029a / tsbat27.zip / RUN.BAT < prev    next >
DOS Batch File  |  1990-01-14  |  1KB  |  62 lines

  1. echo off
  2. echo **********************************************
  3. echo * Virus Testbench by Timo Salmi 14-Jan-1990  *
  4. echo **********************************************
  5.  
  6. rem To use this batch you need Bob Taylor's excellent chksum.exe
  7. rem which can be downloaded from any well-stocked BSS, or from
  8. rem chyde.uwasa.fi by anonymous ftp.
  9.  
  10. rem Format a floppy disk. Calculate the checksums of the files on it and
  11. rem substitute these checksums below on the four rows starting with
  12. rem chksum. The safest way is to test with no harddisk available, or
  13. rem on your colleagues machine :-)
  14.  
  15. rem Invoke the susceptible program using
  16. rem   RUN PROGRAM-NAME-(WITH-EXTENSION) [PARAMETER(S)]
  17. rem and note down the checksum.
  18. rem The batch gives you the opportunity of seeing if the checksums
  19. rem are changed by your dubious program.
  20.  
  21. echo on
  22. chksum ibmbio.com 43484 ibmdos.com 11667 command.com 17821
  23. chksum chksum.exe 54541 list.com 60812
  24. echo off
  25.  
  26. if "%1"=="" goto err_1
  27. if not exist %1 goto err_2
  28.  
  29. set apu=%apu% %1
  30. echo on
  31. chksum%apu%
  32. echo off
  33. pause
  34.  
  35. :loop
  36. set lista=%lista% %1
  37. shift
  38. if not "%1"=="" goto loop
  39.  
  40. echo on
  41. %lista%
  42. chksum ibmbio.com 43484 ibmdos.com 11667 command.com 17821
  43. chksum chksum.exe 54541 list.com 60812
  44. chksum%apu%
  45. echo off
  46. goto out
  47.  
  48. :err_1
  49. echo No program name given
  50. echo 
  51. goto out
  52.  
  53. :err_2
  54. echo %1 not found
  55. echo 
  56. goto out
  57.  
  58. :out
  59. set apu=
  60. set lista=
  61. echo on
  62.